package com.zjgsu.nftplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ahy231
 * @date 2022/3/4 12:12
 * @description
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("商品")
public class Ware {
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("nft id")
    private Long nftId;
    @ApiModelProperty("上传者id")
    private Long uploaderId;
    @ApiModelProperty("上传者昵称")
    private String uploaderName;
    @TableField("`right`")
    @ApiModelProperty("所有权/1 版权/2")
    private Integer right;
    @ApiModelProperty("一口价/拍卖")
    private String saleMethod;
    @ApiModelProperty("一口价/拍卖起拍价")
    private BigDecimal price;
    @ApiModelProperty("上次价格")
    private BigDecimal lastPrice;
    @ApiModelProperty("上次价格变动时间")
    private Date lastDate;
    @ApiModelProperty("商品数量，无限个=-1")
    private Integer goodsNum;
    @ApiModelProperty("版税")
    private Integer royalty;
    @ApiModelProperty("版本")
    private String edition;
    @ApiModelProperty("自己和子作品能被转卖0/自己能转卖，子作品不能转卖1/自己和子作品都不能转卖2")
    private Integer resell;
    @ApiModelProperty("具体权益")
    private String privilege;
    @ApiModelProperty("开始时间")
    private Date startTime;
    @ApiModelProperty("时长")
    private Date time;
    @ApiModelProperty("未上架/0 上架/1 用户下架/2 审核下架/3")
    private Integer status;
    @ApiModelProperty("能否议价")
    private Boolean canDeal;
}
